<?php
class Core_functions
{
	public static function dstripslashes($string)
	{
		if(empty($string))
		{
			return $string;
		}
		if(is_array($string)) 
		{
			foreach($string as $key => $val) 
			{
				$string[$key] = self::dstripslashes($val);
			}
		} 
		else 
		{
			$string = stripslashes($string);
		}
		return $string;
	}
}